<?php
 
namespace app\admin\validate;
use think\Validate; 

class Member extends Validate{
    // 验证规则
    protected $rule = [
        ['username', 'require|unique:member|max:16|alphaDash', '用户名必须|用户名重复'],
        ['password', 'require|min:6', '密码必须|密码长度不能少于6位'],
        ['repassword', 'require|confirm:password', '重复密码必须|两次密码不一致'],
    ];  

}